{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
<div class="row wrapper border-bottom white-bg page-heading news-list">
    <div class="col-sm-4">
        <h2>咨讯列表</h2>
        <!-- 导航部分 -->
        <ol class="breadcrumb">
            <li><a href="{:url('admin/Index/home')}">主页</a></li>
            <li><a href="#">前台设置</a></li>
            <li><strong>咨讯列表</strong></li>
        </ol>
    </div>
    <div class="col-sm-8">
        <div class="title-action">
            <!-- 链接部分 -->
            <a href="{:url('admin/Front/news_any')}" class="btn btn-primary">新增资讯</a>
        </div>
    </div>
</div>
<!-- 会员列表 -->
<div class="wrapper wrapper-content  admit-index">
    <!-- 表格主体 -->
    <table class="table table-bordered white-bg">
        <tr>
            <th>资讯ID</th>
            <th>资讯标题</th>
            <th>资讯类型</th>
            <th>图片</th>
            <th>状态</th>
            <th>相关</th>
            <th>资讯时间</th>
            <th>新增时间</th>
            <th>操作</th>
        </tr>
        {volist name="list" id="v"}
        <tr class="goods-list">

            <td>{$v['news_id']}</td>
            <td class="red">{$v['n_title']|msubstr=0,30}</td>
            <td >{$v['nt_name']?$v['nt_name']:'分类名不存在'}</td>
            <td><img src="{$v['n_img']}" alt="" height="70" /></td>
            <td class="text-warning">
                {if condition="$v['n_state'] eq 1"}
                <font color="red">未发布</font>
                {else/}已发布
                {/if}
            </td>
            <td >来源：{$v['n_source']}
                <!--浏览量：{$v['n_sum']}-->
            </td>
            <td >{$v['n_newstime']}</td>
            <td >{$v['n_addtime']}</td>
            <td >
                <a class="btn btn-xs btn-outline btn-default" href="{:url('admin/Front/news_any',array('news_id'=>$v['news_id']))}">编辑</a>&nbsp;&nbsp;
                <a class="btn btn-xs btn-outline btn-danger news-delete" href="#" value="{$v['news_id']}" >删除</a>&nbsp;&nbsp;
                {if condition="$v['n_state'] eq 1"}
                <a class="btn btn-xs btn-outline btn-primary news-send" href="#"  value="{$v['news_id']}">  发布    </a>
                {else/}
                <a class="btn btn-xs btn-outline btn-success news-send" href="#"  value="{$v['news_id']}">取消发布</a>
                {/if}
            </td>
        </tr>
        {/volist}
    </table>
    <!-- 分页 -->
    <div class="btn-group">{$page}</div>
</div>
</body>
</html>
{include file="include:js" /}


